package Demo08;

import java.util.Arrays;

public class Demo01Arrays {
    public static void main(String[] args) {
        int[] intArray = {10, 20, 30};
        String intStr = Arrays.toString(intArray);
        System.out.println(intStr);

        int [] array1 = {2, 1, 3, 10, 6};
        Arrays.sort(array1);
        System.out.println( Arrays.toString(array1));

        String[] array2 = {"cba", "bac", "cab"};
        Arrays.sort(array2);
        System.out.println(Arrays.toString(array2));
    }
}
